package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.ProductDetails;
import com.example.mapper.ProductDetailsMapper;
import com.example.service.IProductDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2024-09-05
 */
@Service
public class ProductDetailsServiceImpl extends ServiceImpl<ProductDetailsMapper, ProductDetails> implements IProductDetailsService {

    @Resource
    ProductDetailsMapper productDetailsMapper;


    @Override
    public List<ProductDetails> listAllByProductDetailsId(Integer id) {
        return productDetailsMapper.listAllByProductDetailsId(id);
    }
}
